var express = require('express');
var router = express.Router();
var searchController=require('../controllers/searchController')
/* GET home page. */
//模糊搜索
router.get('/:searchName', function(req, res, next) {
  // res.send('模糊搜索')
  searchController.searchContent(req,res)
});
//搜索结果数量
router.get('/searchNum/:searchName', function(req, res, next) {
  // res.send('搜索结果数量')
  searchController.searchNum(req,res)
});

module.exports = router;
